package com.yh.correct.model;

import java.util.Date;
import org.hibernate.validator.constraints.NotBlank;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 矫正期满登记模型
 * 
 * @author 王鹏程 
 * @date 2017.03.14
 * @time 13:33    
 */
public class Expire {
	/**
	 * 登记编号
	 */
	private Integer id;
	/**
	 * 矫正单位id
	 */
	private Integer jid;
	/**
	 *矫正人员id
	 */
	private Integer pid;
	/**
	 * 个人小结
	 */
	private String selfEvaluation;
	/**
	 * 解矫意见
	 */
	@NotBlank(message="解矫意见不能为空或者空字符串")
	private String opintion;
	/**
	 * 解矫原因
	 */
	@NotBlank(message="解矫原因不能为空或者空字符串")
	private String reason;
	/**
	 * 备注
	 */
	private String remarks;
	/**
	 * 合议表
	 */
	private String mergeOption;
	/**
	 * 鉴定表
	 */
	private String expertiseReport;
	/**
	 * 解矫日期
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date expireDate;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getJid() {
		return jid;
	}
	public void setJid(Integer jid) {
		this.jid = jid;
	}
	public Integer getPid() {
		return pid;
	}
	public void setPid(Integer pid) {
		this.pid = pid;
	}
	public String getSelfEvaluation() {
		return selfEvaluation;
	}
	public void setSelfEvaluation(String selfEvaluation) {
		this.selfEvaluation = selfEvaluation;
	}
	public String getOpintion() {
		return opintion;
	}
	public void setOpintion(String opintion) {
		this.opintion = opintion;
	}
	public String getReason() {
		return reason;
	}
	public void setReason(String reason) {
		this.reason = reason;
	}
	public String getRemarks() {
		return remarks;
	}
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
	public String getMergeOption() {
		return mergeOption;
	}
	public void setMergeOption(String mergeOption) {
		this.mergeOption = mergeOption;
	}
	public String getExpertiseReport() {
		return expertiseReport;
	}
	public void setExpertiseReport(String expertiseReport) {
		this.expertiseReport = expertiseReport;
	}
	public Date getExpireDate() {
		return expireDate;
	}
	public void setExpireDate(Date expireDate) {
		this.expireDate = expireDate;
	}
	@Override
	public String toString() {
		return "Expire [id=" + id + ", jid=" + jid + ", pid=" + pid + ", selfEvaluation=" + selfEvaluation
				+ ", opintion=" + opintion + ", reason=" + reason + ", remarks=" + remarks + ", mergeOption="
				+ mergeOption + ", expertiseReport=" + expertiseReport + ", expireDate=" + expireDate + "]";
	}
	
	
	
}
